package com.zhangpengkai;

import com.zhangpengkai.util.SnowFlakeUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.Random;
@Slf4j
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");


        int nextInt = new Random().nextInt(10)+10;

        System.out.println(nextInt);

        long nextId  = new SnowFlakeUtil(nextInt,nextInt).getNextId();

        System.out.println(nextId);




    }
}